package registry;

public class WorkerObject {
	private String ip;
	private int port;
	private int price;
	private int load = 0;
	private long regTime;

	WorkerObject(){
	}
	
	WorkerObject(String ip, int port, int price){
		this.ip = ip;
		this.port = port;
		this.price = price;
	}
	
	WorkerObject(String ip, int port, int price, int load, long regTime){
		this.ip = ip;
		this.port = port;
		this.price = price;
		this.load = load;
		this.regTime = regTime;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getLoad() {
		return load;
	}

	public void setLoad(int load) {
		this.load = load;
	}

	public long getRegTime() {
		return regTime;
	}

	public void setRegTime(long regTime) {
		this.regTime = regTime;
	}
}
